def lone_sum(a, b, c):
  if a != b and b != c and a != c:
    return a+b+c
  if a==b==c:
      return 0
  else:
    if a == b:
      return c
    if b==c:
      return a
    if c==a:
      return b